package com.zcy.utils;

import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class MusicUtils {
    public MusicUtils() throws FileNotFoundException, JavaLayerException {
        InputStream is = new FileInputStream("Music/music.mp3");
        Player player = new Player(is);
        player.play();
    }
}
